/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-03-31
 * Time: 18:58
 */
public class Demo6 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread=new Thread(()->{
            for (int i = 0; i < 10; i++) {
                System.out.println("1111");
            }
        });
        Thread thread1=new Thread(()->{
            for (int i = 0; i < 10; i++) {
                System.out.println("222222");
            }
        });
        thread.start();
      //  Thread.sleep(1000);
        thread1.start();
    }
}
